package com.zxt.smartplatform.mapper;

import com.alibaba.druid.pool.DruidDataSource;
import com.zxt.smartplatform.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.mybatis.spring.SqlSessionFactoryBean;
import org.mybatis.spring.mapper.MapperScannerConfigurer;
import org.springframework.context.annotation.Bean;
import org.springframework.transaction.PlatformTransactionManager;

import javax.sql.DataSource;
import java.util.List;

public interface UserMapper {

    void addUser(User user);

    List<User> selectByUserNameOrPhoneOrEmail(@Param("username") String username, @Param("phone") String phone, @Param("email") String email);

    User selectUserByUserName(String username);

    void upDateUser(User user);

    void upDateUserLogin(User user);
}


